package chess;


public class RoomUserMSG implements IMSG {
	private String status;
	private String playerName;
	private String playerId;
	public RoomUserMSG(String status,String name,String id){
		
			this.status = status;
			this.playerName = name;
			this.playerId = id;
	}
	@Override
	public String toXML() {
		StringBuffer sb = new StringBuffer();
		sb.append("<message for=\"roomuser\"");
		sb.append(" status=\""+this.status+"\"");
		sb.append(" pname=\""+this.playerName+"\"");
		sb.append(" pid=\""+this.playerId+"\"");
		sb.append("/>");
		return sb.toString();
	}

}
